package com.tutu.service;

import com.tutu.entity.DeviceData;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * DeviceDataService
 */
public interface DeviceDataService {

    // 查询（分页）
    Map<String, Object> pageByParams(Integer deviceId, String keyWord, Integer page, Integer limit);

    // 查询详情
    Map<String, Object> getInfoById(Integer id);

    // 删除
    Map<String, Object> deleteById(HttpServletRequest request, Integer id);

    // 批量删除
    Map<String, Object> batchDel(HttpServletRequest request, String ids);

    // 根据设备MN号和数据类型获取对应的最新一条设备数据
    Map<String, Object> getInfoByDeviceCodeAndType(String deviceCode, Integer type);

    // 根据条件筛选查询数据集合
    List<DeviceData> productExcel(Map<String, String> map);

    // 修改设备对应字段的显示隐藏状态
    Map<String, Object> changeDeviceCodeStatus(HttpServletRequest request, String deviceCode, Integer type, String code, Integer status, boolean isRefreshCache);

    // 修改设备额外参数信息
    Map<String, Object> changeDeviceCodeName(HttpServletRequest request, String deviceCode, Integer type, String code, String content);
}
